package com.example.sxmall.common;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: 潘天宇
 * @Date: 2022/03/22/11:10
 * @Description:
 */
public class SxMallException extends RuntimeException{
    public SxMallException(String message) {
        super(message);
    }
    /**
     * 丢出一个异常
     *
     * @param message
     */
    public static void fail(String message) {
        throw new SxMallException(message);
    }
}
